package model;

import pond.db.Model;

/**
 * Created by sky_wang on 2017/2/14.
 */
public class ViewForGrid extends Model {
    {
        table("view_for_grid");
        id("vid");
        field("view_name");
        field("view_sql");

        field("template_name");// 视图模版名称
        field("main_table");
        field("query_ids");
        field("query_html");
        field("show_tables");   // groups and table 不包含express组
        field("relational_data_tables"); // all relational data tables 不包含express组
        field("grid_options");
        field("show_columns");  // show fields of vid [{ key:filed, value: headername},{}]
        field("template_columns");
        field("cols_of_sub_groups");// consist of groups(other views )[ {key: group: value{filed}}] 包含express组
        field("is_single_group"); //   show single group （express组算一组）
        field("select_columns");  //   all cols of all relational data tables
        field("auto_id");
    }
}
